package com.ukao.pad.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by ukaodev on 2017/6/30.
 */

public class VipLeverBean extends BaseBean<VipLeverBean> {



        /**
         * pageNum : 0
         * pageSize : 0
         * size : 3
         * orderBy : null
         * startRow : 0
         * endRow : 3
         * total : 0
         * pages : 0
         * list : [{"id":8,"mercId":1,"cityId":-1,"name":"红钻会员卡","coverType":1,"imgPath":"#F91919","giftPoint":null,"pointRatio":1,"rights":"1000","discount":20,"level":6,"remark":"eft","payAmt":null,"payCnt":null,"point":null,"userCnt":0,"status":1,"createBy":8,"createTime":1497686833000,"updateBy":8,"updateTime":1497690773000},{"id":6,"mercId":1,"cityId":-1,"name":"紫钻会员卡","coverType":1,"imgPath":"#3B21C2","giftPoint":4,"pointRatio":1,"rights":"1111","discount":40,"level":9,"remark":"使用须知","payAmt":200,"payCnt":1,"point":3,"userCnt":0,"status":1,"createBy":8,"createTime":1497581083000,"updateBy":null,"updateTime":null},{"id":1,"mercId":1,"cityId":-1,"name":"普通会员卡","coverType":1,"imgPath":"#60be4e","giftPoint":10,"pointRatio":1,"rights":"1101","discount":50,"level":1,"remark":"普通会员卡使用须知","payAmt":null,"payCnt":null,"point":null,"userCnt":null,"status":0,"createBy":null,"createTime":null,"updateBy":8,"updateTime":1497690662000}]
         * firstPage : 0
         * prePage : 0
         * nextPage : 0
         * lastPage : 0
         * isFirstPage : false
         * isLastPage : true
         * hasPreviousPage : false
         * hasNextPage : false
         * navigatePages : 8
         * navigatepageNums : []
         */


        private int pageNum;
        private int pageSize;
        private int size;
        private Object orderBy;
        private int startRow;
        private int endRow;
        private int total;
        private int pages;
        private int firstPage;
        private int prePage;
        private int nextPage;
        private int lastPage;
        private boolean isFirstPage;
        private boolean isLastPage;
        private boolean hasPreviousPage;
        private boolean hasNextPage;
        private int navigatePages;
        private List<ListBean> list;
        private List<?> navigatepageNums;

        public int getPageNum() {
            return pageNum;
        }

        public void setPageNum(int pageNum) {
            this.pageNum = pageNum;
        }

        public int getPageSize() {
            return pageSize;
        }

        public void setPageSize(int pageSize) {
            this.pageSize = pageSize;
        }

        public int getSize() {
            return size;
        }

        public void setSize(int size) {
            this.size = size;
        }

        public Object getOrderBy() {
            return orderBy;
        }

        public void setOrderBy(Object orderBy) {
            this.orderBy = orderBy;
        }

        public int getStartRow() {
            return startRow;
        }

        public void setStartRow(int startRow) {
            this.startRow = startRow;
        }

        public int getEndRow() {
            return endRow;
        }

        public void setEndRow(int endRow) {
            this.endRow = endRow;
        }

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public int getPages() {
            return pages;
        }

        public void setPages(int pages) {
            this.pages = pages;
        }

        public int getFirstPage() {
            return firstPage;
        }

        public void setFirstPage(int firstPage) {
            this.firstPage = firstPage;
        }

        public int getPrePage() {
            return prePage;
        }

        public void setPrePage(int prePage) {
            this.prePage = prePage;
        }

        public int getNextPage() {
            return nextPage;
        }

        public void setNextPage(int nextPage) {
            this.nextPage = nextPage;
        }

        public int getLastPage() {
            return lastPage;
        }

        public void setLastPage(int lastPage) {
            this.lastPage = lastPage;
        }

        public boolean isIsFirstPage() {
            return isFirstPage;
        }

        public void setIsFirstPage(boolean isFirstPage) {
            this.isFirstPage = isFirstPage;
        }

        public boolean isIsLastPage() {
            return isLastPage;
        }

        public void setIsLastPage(boolean isLastPage) {
            this.isLastPage = isLastPage;
        }

        public boolean isHasPreviousPage() {
            return hasPreviousPage;
        }

        public void setHasPreviousPage(boolean hasPreviousPage) {
            this.hasPreviousPage = hasPreviousPage;
        }

        public boolean isHasNextPage() {
            return hasNextPage;
        }

        public void setHasNextPage(boolean hasNextPage) {
            this.hasNextPage = hasNextPage;
        }

        public int getNavigatePages() {
            return navigatePages;
        }

        public void setNavigatePages(int navigatePages) {
            this.navigatePages = navigatePages;
        }

        public List<ListBean> getList() {
            return list;
        }

        public void setList(List<ListBean> list) {
            this.list = list;
        }

        public List<?> getNavigatepageNums() {
            return navigatepageNums;
        }

        public void setNavigatepageNums(List<?> navigatepageNums) {
            this.navigatepageNums = navigatepageNums;
        }

        public static class ListBean implements Parcelable {

            /**
             * id : 8
             * mercId : 1
             * cityId : -1
             * name : 红钻会员卡
             * coverType : 1
             * imgPath : #F91919
             * giftPoint : null
             * pointRatio : 1
             * rights : 1000
             * discount : 20
             * level : 6
             * remark : eft
             * payAmt : null
             * payCnt : null
             * point : null
             * userCnt : 0
             * status : 1
             * createBy : 8
             * createTime : 1497686833000
             * updateBy : 8
             * updateTime : 1497690773000
             */
            private  int  def;
            private   boolean  check;
            private String id="";
            private int mercId;
            private int cityId;
            private String name;
            private int coverType;
            private String imgPath;
            private String giftPoint;
            private int pointRatio;
            private String rights;
            private int discount;
            private int level;
            private String remark;
            private String payAmt;
            private String payCnt;
            private String point;
            private int userCnt;
            private int status;
            private int createBy;
            private long createTime;
            private int updateBy;
            private long updateTime;

            public boolean getDef() {
             boolean   booleanDef=false;
                if ( def==1){/*默认分组*/
                    booleanDef=true;
                }
                return booleanDef;
            }

            public boolean isCheck() {
                return check;
            }

            public void setCheck(boolean check) {
                this.check = check;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public int getMercId() {
                return mercId;
            }

            public void setMercId(int mercId) {
                this.mercId = mercId;
            }

            public int getCityId() {
                return cityId;
            }

            public void setCityId(int cityId) {
                this.cityId = cityId;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public int getCoverType() {
                return coverType;
            }

            public void setCoverType(int coverType) {
                this.coverType = coverType;
            }

            public String getImgPath() {
                return imgPath;
            }

            public void setImgPath(String imgPath) {
                this.imgPath = imgPath;
            }

            public String getGiftPoint() {
                return giftPoint;
            }

            public void setGiftPoint(String giftPoint) {
                this.giftPoint = giftPoint;
            }

            public int getPointRatio() {
                return pointRatio;
            }

            public void setPointRatio(int pointRatio) {
                this.pointRatio = pointRatio;
            }

            public String getRights() {
                return rights;
            }

            public void setRights(String rights) {
                this.rights = rights;
            }

            public int getDiscount() {
                return discount;
            }

            public void setDiscount(int discount) {
                this.discount = discount;
            }

            public int getLevel() {
                return level;
            }

            public void setLevel(int level) {
                this.level = level;
            }

            public String getRemark() {
                return remark;
            }

            public void setRemark(String remark) {
                this.remark = remark;
            }

            public String getPayAmt() {
                return payAmt;
            }

            public void setPayAmt(String payAmt) {
                this.payAmt = payAmt;
            }

            public String getPayCnt() {
                return payCnt;
            }

            public void setPayCnt(String payCnt) {
                this.payCnt = payCnt;
            }

            public String getPoint() {
                return point;
            }

            public void setPoint(String point) {
                this.point = point;
            }

            public int getUserCnt() {
                return userCnt;
            }

            public void setUserCnt(int userCnt) {
                this.userCnt = userCnt;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public int getCreateBy() {
                return createBy;
            }

            public void setCreateBy(int createBy) {
                this.createBy = createBy;
            }

            public long getCreateTime() {
                return createTime;
            }

            public void setCreateTime(long createTime) {
                this.createTime = createTime;
            }

            public int getUpdateBy() {
                return updateBy;
            }

            public void setUpdateBy(int updateBy) {
                this.updateBy = updateBy;
            }

            public long getUpdateTime() {
                return updateTime;
            }

            public void setUpdateTime(long updateTime) {
                this.updateTime = updateTime;
            }


            public ListBean() {
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeInt(this.def);
                dest.writeByte(this.check ? (byte) 1 : (byte) 0);
                dest.writeString(this.id);
                dest.writeInt(this.mercId);
                dest.writeInt(this.cityId);
                dest.writeString(this.name);
                dest.writeInt(this.coverType);
                dest.writeString(this.imgPath);
                dest.writeString(this.giftPoint);
                dest.writeInt(this.pointRatio);
                dest.writeString(this.rights);
                dest.writeInt(this.discount);
                dest.writeInt(this.level);
                dest.writeString(this.remark);
                dest.writeString(this.payAmt);
                dest.writeString(this.payCnt);
                dest.writeString(this.point);
                dest.writeInt(this.userCnt);
                dest.writeInt(this.status);
                dest.writeInt(this.createBy);
                dest.writeLong(this.createTime);
                dest.writeInt(this.updateBy);
                dest.writeLong(this.updateTime);
            }

            protected ListBean(Parcel in) {
                this.def = in.readInt();
                this.check = in.readByte() != 0;
                this.id = in.readString();
                this.mercId = in.readInt();
                this.cityId = in.readInt();
                this.name = in.readString();
                this.coverType = in.readInt();
                this.imgPath = in.readString();
                this.giftPoint = in.readString();
                this.pointRatio = in.readInt();
                this.rights = in.readString();
                this.discount = in.readInt();
                this.level = in.readInt();
                this.remark = in.readString();
                this.payAmt = in.readString();
                this.payCnt = in.readString();
                this.point = in.readString();
                this.userCnt = in.readInt();
                this.status = in.readInt();
                this.createBy = in.readInt();
                this.createTime = in.readLong();
                this.updateBy = in.readInt();
                this.updateTime = in.readLong();
            }

            public static final Creator<ListBean> CREATOR = new Creator<ListBean>() {
                @Override
                public ListBean createFromParcel(Parcel source) {
                    return new ListBean(source);
                }

                @Override
                public ListBean[] newArray(int size) {
                    return new ListBean[size];
                }
            };
        }
}
